package com.yl.mine.repo

import com.yl.common.base.BaseRepository
import com.yl.common.bean.DailyModel
import com.yl.common.network.RespStateData
import com.yl.mine.api.MineApi

/**
 * Created by stew on 8/5/22.
 * mail: stewforani@gmail.com
 */
class MineRepo(private val api: MineApi) : BaseRepository() {
    suspend fun getBanner(data: RespStateData<DailyModel>) =
        dealResp({ api.getBanner() }, data)

    suspend fun getDailyList(url:String,data: RespStateData<DailyModel>) =
        dealResp({ api.getDailyList(url) }, data)
}